<script setup>
// 将用户的 headers 和 cookies 转发到 `/api/cookies`
const headers = useRequestEvent(['cookie'])
console.log('[33m [ headers ]-4 [0m', headers)
const { data } = await useFetch('/api/cookies', {
	headers,
})
console.log('[48;2;0;0;255m [ data ]-5 [0m', data.value)
</script>

<template>
	<div>api</div>
</template>
